package View;

import javax.swing.*;
import javax.swing.table.DefaultTableModel;

public class HomePage extends JPanel{

	JScrollPane scrollPane;
    JTable table;
    DefaultTableModel model;
	
	public HomePage() {
        initComponents();
        addComponents();
    }
	
	private void initComponents() {
	
String[] columnNames = new String[] {"Project Name", "Development","Acceptance","Production"};
        
        model = new DefaultTableModel(columnNames, 0) {
            @Override
            public boolean isCellEditable(int row, int column) {
                return false;
            }
        };
        
        table = new JTable(model);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setFocusable(false);
        table.setRowSelectionAllowed(false);
        scrollPane = new JScrollPane(table);
	}
	
	private void addComponents() {
		add(scrollPane);
    }
}
